home *** CD-ROM | disk | FTP | other *** search
Wrap
/* Copyright (c) Oracle Corporation 1994. All Rights Reserved */ /***************************************************************************** NAME dbint72.vrf - V3 version analysis/product configuration script DESCRIPTION This script checks dependencies and environment settings OWNER Zakia Zerhouni MODIFIED DD-MMM-YY Reason ekhor 10/31/95 added web_install processing LMurphy 06/19/95 Modified for Windows 95 GUI LMurphy 23-JAN-95 Modified for use with SQL*Net v1.1 help zzerhoun 04-JAN-95 Created. *****************************************************************************/ { { doit = execute("%installer_home%\win95.vrf"); } [ 'UNBOUND_VARIABLE: { required_version = product_version(w95instver); temp = explode(required_version, "."); required_version = implode(list(first(temp), first(rest(temp)), first(rest(rest(temp))), first(rest(rest(rest(temp))))), "."); signal('failure,instantiate(nls("instver_too_early1","The version of the Installer currently running is %%installer_version%%. The installation you have chosen requires version %%required_version%%. Please run version %%required_version%% in order to perform this installation."))); } ] /* This FAILURE will cause 3.0.9.x installer to exit gracefully. */ if (not(doit) && (version_status == 'reinstall)) { if(member(selected_products, current_product) || member(selected_products, product_parent(current_product))) doit = TRUE; } if (doit) { { set_nav72 = FALSE; nav72 = v7_translate("NAV72"); if (not(exists(nav72))) signal('UNBOUND_ENVIRONMENT_VARIABLE); } [ 'OS_ERROR,'INVALID_FILE_NAME, 'PERMISSION_DENIED,'UNBOUND_ENVIRONMENT_VARIABLE: { nav72 = "%oracle_home%\NAV72"; set_nav72 = TRUE; } ] po7_expl = nls("po7_expl", "%%product_label%% (PO7.EXE) is currently running on this machine. Please close this application before installing %%product_label%%. Silent mode installation of %%product_label%% terminated."); po7_inst = instantiate(nls("po7_inst", "%%product_label%% (PO7.EXE) is currently running on this machine. Please close this application before installing %%product_label%%. Choose OK after you have closed all Oracle applications and want to resume the installation of %%product_label%%. Choose CANCEL to terminate the installation of %%product_label%%. ")); po7_inst_term = instantiate(nls("po7_inst_term", "%%product_label%% installation terminated.")); po7_inst_content = instantiate(nls("po7_inst_content", "%%product_label%% Running")); po7_inst_help = instantiate(nls("po7_inst_help", "The Oracle Installer has detected that %%product_label%% (PO7.EXE) is currently running on this machine. Please close this application before installing %%product_label%%. Choose OK after you have closed all Oracle applications and want to resume the installation of %%product_label%%. Choose CANCEL to terminate the installation of %%product_label%%. ")); /* check to see if the po7 app is closed */ done = FALSE; while(not(done)) { move_file("%ORACLE_HOME%\bin\po7.exe", "%ORACLE_HOME%\bin\po7.exe"); done = TRUE;} [ 'PERMISSION_DENIED, 'INVALID_FILE_NAME, 'OS_ERROR, 'WRITE_ERROR: { if (silent_mode) signal('FAILURE, instantiate(po7_expl)); else information_dialog(instantiate(po7_inst), po7_inst_content, instantiate(po7_inst_help)); } 'FILE_NOT_FOUND: done = TRUE; ] /***************************** Set the VRF-INS script ratchet ******************************/ vrf_ratchet = "7.2.2.3.1"; permit_retry_operations = FALSE; /*************************************** Bind string variables and prompt strings ****************************************/ { install_type = install_type; } ['UNBOUND_VARIABLE: install_type = nls("custom_install","Custom Install");] { bundle_name = bundle_name; } ['UNBOUND_VARIABLE: bundle_name = nls("bundle_name","Personal Oracle7 for Windows 95");] { web_install = web_install; } [ 'UNBOUND_VARIABLE: web_install = FALSE; ] win95_sys_dir = windows_system_directory(); win95_dir = windows_directory(); installing_scripts = nls("installing_scripts", "Installing %%product_label%% Scripts..."); installing_executables = nls("installing_executables", "Installing %%product_label%% Executables..."); installing_dlls = nls("installing_dlls", "Installing %%product_label%% Dynamic Link Libraries..."); installing_doc = nls("installing_doc", "Installing %%product_label%% Help Files..."); registering = nls("registering","Registering %%product_label%%..."); modifying_config = nls("modifying_config", "Modifying Windows 95 Registry..."); copy_sample = FALSE; sum_sample = 0; { init_value = win32_get_value("HKEY_CURRENT_USER", "Software\ORACLE\Personal Oracle7 Navigator\Settings", "Init"); } [ 'INVALID_KEY, 'OS_ERROR, 'FILE_NOT_FOUND: init_value = 0; ] if (init_value == 0) { copy_sample = TRUE; sum_sample = sum(sample); } install_parent = FALSE; if (member(selected_products, current_product)) install_parent = TRUE; /*************************************** Return total size of files when required ***************************************/ total_sum = 0; if (install_parent) { /******************************************** Determine sibling products to be co-installed *********************************************/ sibling_products = all_child_products(product_parent(current_product)); extract(sibling_products, current_product); /* ALWAYS verify all siblings before parent */ while(not(empty(sibling_products))) { if (member(selected_products, first(sibling_products))) total_sum = total_sum + verify(first(sibling_products)); sibling_products = rest(sibling_products); } total_sum = total_sum + verify(product_parent(current_product)); } vsn = "PO7"; if (web_install) { vsn = "WEB"; } else { vsn = "PO7"; } return(verify(w95rsf72) + sum(deinst,exe,dll,vsn) + sum_sample + total_sum); } else /* if (doit) */ { refresh_map_file = FALSE; return(0); } }